/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.edu.upc.dew.controller;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author PRIOS
 */
public class HolaServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("HolaServlet.doGet");
        PrintWriter writer = resp.getWriter();
        writer.println("<h1>HolaServlet<h1>");

        String nombre = req.getParameter("nombre");
        String apellido = req.getParameter("apellido");

        writer.println(nombre+" - "+apellido);

        writer.close();

    }
    
    



  

  
}
